package cn.jiyun.mapper;

import cn.jiyun.entity.Yddgl;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

import java.util.List;

public interface YddglMapper extends BaseMapper<Yddgl> {

    List<Yddgl> findPage(Page<Yddgl> yddglPage,@Param("yddgl") Yddgl yddgl);

    @Select("SELECT g.*,q.name qname from yddgl g , yddqx q where g.user_id = q.id and g.id = ${id}")
    Yddgl findById(Integer id);
}
